package org.squabble.web.comment;

import java.util.ArrayList;
import java.util.List;

import org.springmodules.validation.bean.conf.loader.annotation.handler.Length;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotNull;

public class CommentSubmitCommand {

	private Long articleId;

	private Long parentId;

	@NotNull
	@Length(min = 3, max = 2000)
	private String text;

	@Length(max = 255)
	private String title;

	private String tags;

	private List<Long> flags = new ArrayList<Long>();

	public Long getArticleId() {
		return articleId;
	}

	public void setArticleId(Long articleId) {
		this.articleId = articleId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public List<Long> getFlags() {
		return flags;
	}

	public void setFlags(List<Long> flags) {
		this.flags = flags;
	}

}
